/**
 * @Author: xzm
 * @Date: 2019/9/10
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';
import { getAppId, getCompanyId } from '@/assets/js/auth';
// 操作记录 /ttFiTripartiteApply/selectLog?id=1
export const queryLog = Id => axios.get(`${SERVER.WHOLESALES}/ttFiTripartiteApply/selectLog?id=${Id}`);



// vin 查询
export const queryOwnerVehicleInfo = params => axios.post(`${SERVER.WHOLESALES}/vehicle/getcar`, params ) ;

 //保存申请页面数据
export const newSave = params => axios.post(`${SERVER.DMSCLOUD_ACTIVITY}/plateNumber/saveData`, params ) ;

// 主页面列表查询
export const getListByPage = params => axios.post(`${SERVER.DMSCLOUD_ACTIVITY}/plateNumber/getListByPage`, params);

//详情页面查询明细
export const getDetail = (params) => axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/plateNumber/getDetail`, {params});
//编辑页面保存
export const updateDate = params => axios.post(`${SERVER.DMSCLOUD_ACTIVITY}/plateNumber/updateData`, params ) ;


// 作废退款
export const delectDate = params => axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/plateNumber/delectDate`, {params});
//
//
// //编辑
// export const editOrderRefund = params => axios.post(`${SERVER.WHOLESALES}/bigOrderRefund/editOrderRefund`, params);
//厂端主页面查询
export const getListAll = params => axios.post(`${SERVER.DMSCLOUD_ACTIVITY}/plateNumber/getListAll`, params);

//厂端的回复保存修改writeBack
export const writeBack = params => axios.post(`${SERVER.DMSCLOUD_ACTIVITY}/plateNumber/writeBack`, params ) ;
//厂端详情页面查询明细
export const getDetails = (params) => axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/plateNumber/getDetails`, {params});
